package files;
import java.io.File;

public class SgxFilesMover {

	public static void main(String[] args) {
		File file_1 = new File(args[0]);
		String path_1 = file_1.getPath().substring(0, file_1.getPath().lastIndexOf(System.getProperty("file.separator")));
		if (file_1.exists()) {
			String f2 = path_1 + System.getProperty("file.separator") + "SESPrice-2.dat";
			File file_2 = new File(f2);
			if (file_2.exists()) file_2.delete();
			file_1.renameTo(new File(f2));
		}

		File file_0 = new File(args[1]);
		String path_0 = file_0.getPath().substring(0, file_0.getPath().lastIndexOf(System.getProperty("file.separator")));
		if (file_0.exists()) {
			String f1 = path_0 + System.getProperty("file.separator") + "SESPrice-1.dat";
			file_1 = new File(f1);
			if (file_1.exists()) file_1.delete();
			file_0.renameTo(new File(f1));
		}
	}

}
